<div class="header">
    <?php echo $this->Html->image('TrueNews.jpg'); ?>
</div>
<div class="detail">
    <h1>INVOICE</h1>
    <div class="build-to">
        <div class="to">
            <p>Subscriber Name: <b><?php echo $payment['User']['name'] ?></b></p>
            <p>Address: <?php echo $payment['User']['house_number'], ', ',  $payment['User']['street'], ', ', $payment['User']['city'], $payment['User']['country'] ?></p>
            <p>Phone: <?php  echo $payment['User']['phone'] ?></p>
            <p>Email: <?php echo $payment['User']['email'] ?></p>
            
        </div>
        <div class="from">
            <p>Invoice #: <b>INV<?php echo $payment['Subscription']['id'] ?></b></p>
            <p>Contact: <?php $company['_company_address']?></p>
            <p>Phone: <?php   echo $company['_company_phone'] ?></p>
            <p>Email: <?php echo $company['_company_email'] ?></p> 
            <p>Website: <?php echo $company['_company_website'] ?></p>
        </div>
    </div>
    <table>
        <thead>
            <tr>
                <th>No</th>
                <th>Item Description</th>
                <th>Qty</th>
                <th>Unit Price</th>
                <th>Amount</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td class="big-height">1</td>
                <td>Subscription <?php echo $payment['SubscriptionTerm']['name'] ?>(Pay by: <?php echo $payment['Subscription']['payment_method']?>)</td>
                <td>1</td>
                <td>$ <?php printf('%.2f', $payment['SubscriptionTerm']['price']) ?></td>
                <td>$ <?php printf('%.2f', $payment['SubscriptionTerm']['price']) ?></td>
            </tr>
            <tr class="total-amount">
                <td colspan="4" class="label">Total</td>
                <td>$ <?php printf('%.2f', $payment['SubscriptionTerm']['price']) ?></td>
            </tr>
        </tbody>
    </table>
    <div class="signature">
        <div class="left">
            <b>Subscriber</b>
        </div>
        <div class="right">
            <b>Owner</b>
        </div>
    </div>
</div>
<div class="footer">
    <p><?php echo $company['_company_address'] ?></p>
        <p>Phone: <?php echo $company['_company_phone'] ?>, Email: <?php echo $company['_company_email'] ?>, Website: <?php echo $company['_company_website'] ?></p>
</div>

<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
